import Mock from 'mockjs';
import menu from './menu';
import user from './user';

Mock.setup({timeout: '100-500'});

Mock.mock(/\/api\/menu\/list/, 'post', menu.getMenu);

Mock.mock(/\/api\/user\/list$/, 'post', user.getList);
Mock.mock(/\/api\/user\/del$/, 'delete', user.del);
Mock.mock(/\/api\/user\/edit$/, 'post', user.edit);